package LOGISTICS.storage;

import java.net.InetAddress;

import TOOLS.SQLtool;
import TOOLS.errCodeManagement;
import TOOLS.messageTool;

public class test001_v_shelfListMana {


	static messageTool mt = new messageTool();
	
	public static void main(String[] args) {
		SQLtool isql = new SQLtool();
		String IPaddr = "192.168.0.1";
		try {
			InetAddress addr = InetAddress.getLocalHost();
			IPaddr = addr.getHostAddress();
		} catch (Exception e1) {
			e1.printStackTrace();
		}
		isql.config(IPaddr, "AKS2019", "sa", "123456");
//		isql.config("192.168.0.39", "AKS2019", "sa", "abcd1234!");
//		isql.config("192.168.1.97", "XHAKS2021", "ma", "123456");

		try {
			shelfMana sm=new shelfMana(isql);
			sm.init();
			sm.p.imap.editable=true;
		} catch (Exception e) {
			String str = errCodeManagement.getErrText(e.getMessage());
			mt.show(str);
		}
	}

}
